<% form_remote_tag(
    :url => { 
      :controller => "admin",
      :action     => "rating_update",
      :id         => rating.id }
    ) do %>
  <tr class="<%= cycle('odd', 'even') %>">
    <td>
      <%= link_to_remote(
            "X", 
            :url => url_for(:controller => "admin", :action => "rating_remove", :id => rating.id), 
            :success => "this.up('tr').fade()",
            :bind => "this")%>
    </td>
    <td>
      <%= select(
        "rateable_object", 
        "type", 
        RateableObject::TYPES.collect { |t| [t.capitalize, t] }, 
        { :selected => h(rating.rateable_type.capitalize) }, 
        { :id => "",
          :class => "default rateable_type", 
          :name => "type" } ) %>
    </td>
    <td>
      <%= text_field_tag(
        "name", 
        h(rating.name), 
        :id => nil,
        :class => "default rateable_name",
        :autocomplete => "off",
        :style => "margin-bottom: 3px;",
        :maxlength => "50") %>
      <br/>
      <%= text_field_tag(
        "creator", 
        h(rating.creator), 
        :id => nil,
        :class => "default rateable_creator",
        :autocomplete => "off",
        :maxlength => "50" ) %>
    </td>
    <td>
      <%= text_field_tag(
        "genre", 
        h(rating.genre), 
        :id => nil,
        :class => "default rateable_genre",
        :style => "width: 70px;",
        :autocomplete => "off",
        :maxlength => "50" ) %>
    </td>
    <td>
      <%= text_field_tag(
        "url", 
        h(rating.url), 
        :id => nil,
        :class => "default rateable_url",
        :autocomplete => "off",
        :maxlength => "50" ) %>
    </td>
    <td>
      <%= submit_tag "+", :class => "default submit" %>  
    </td>
  </tr>
<% end %>